package com.nuedu.corejava.ch3.homework;

import java.util.Scanner;

public class SelectHomeWork3 {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		System.out.println("请输入需要汇款的金额");
		int x=scanner.nextInt();
		double sum=0;
		if (x<100) {
			System.out.println("汇费为1元");
			
		}else if (x<5000) {
			sum=x*0.01;
			System.out.println("汇费为"+sum+"元");
		}else {
			System.out.println("汇费为50元");
		}
	}

}
